package com.gdk.ksoft.ui.customers;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;

import com.gdk.ksoft.R;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;

/**
 * Created by hel on 2014-11-21.
 * 工作页面
 */
public class FragmentCustomer extends Fragment {

    public static final String TAG = FragmentCustomer.class.getSimpleName();
    @ViewInject(R.id.fcustomer_etCustomerSearch)private EditText etCustomerSearch;//搜索关键字

    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_customer,null);
        ViewUtils.inject(this,rootView);
        return rootView;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }

    @OnClick(value={R.id.fcustomer_txtSubmit})
    public void onViewClick(View view){
        switch(view.getId()){
            case R.id.fcustomer_txtSubmit://查找客户
                startActivity(new Intent(getActivity(),NewDeliverAddressActivity.class));
                getActivity().overridePendingTransition(R.anim.slide_in_right,R.anim.slide_out_left);
                break;
            default:
                break;
        }
    }

}
